package com.zhentao.model.social.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhentao.model.common.dtos.ResponseResult;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ap_user_like
 */
@TableName(value ="ap_user_like")
@Data
public class ApUserLike implements Serializable {
    /**
     * 用户点赞表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 点赞人的ID
     */
    @TableField(value = "like_user_id")
    private Integer likeUserId;

    /**
     * 被点zan人的ID
     */
    @TableField(value = "to_user_id")
    private Integer toUserId;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 头像地址
     */
    @TableField(value = "avatar_url")
    private String avatarUrl;

    /**
     * 动态文章id（社交文章id）
     */
    @TableField(value = "social_id")
    private Integer socialId;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
